<% if permissions.present? %>
  <% permissions.each do |new, items| %>
    <% items.each_with_index do |item, i| %>
    <tr>
      <% if i == 0 %>
      <td rowspan="<%=items.count %>"><%=items.first.class_name_at %></td>
      <% end %>
      <td>
        <%=item.ability_at %>
      </td>
    </tr>
    <% end %>
  <% end %> 
<% else %>
  <tr class='no_data'>
    <td colspan='2'>暂无</td>
  </tr>
<% end %>